package com.jindy.module.outboundorder.mapper;

import com.jindy.module.machine.dto.MachineDto;
import com.jindy.module.outboundorder.domain.OutboundOrder;

import java.util.List;
import java.util.Map;

/**
 * 出库单Mapper接口
 *
 * @author ruoyi
 * @date 2022-10-18
 */
public interface OutboundOrderMapper
{
    /**
     * 查询出库单
     *
     * @param id 出库单主键
     * @return 出库单
     */
    public OutboundOrder selectOutboundOrderById(Long id);

    /**
     * 查询出库单列表
     *
     * @param outboundOrder 出库单
     * @return 出库单集合
     */
    public List<OutboundOrder> selectOutboundOrderList(OutboundOrder outboundOrder);
    public List<OutboundOrder> selectChileOutboundOrderList(OutboundOrder outboundOrder);
    /**
     * 根据机器查询出库单
     * @param machineDto
     * @return
     */
    public List<OutboundOrder> selectOutboundOrderListByMachineId(MachineDto machineDto);
    /**
     * 新增出库单
     *
     * @param outboundOrder 出库单
     * @return 结果
     */
    public int insertOutboundOrder(OutboundOrder outboundOrder);

    /**
     * 修改出库单
     *
     * @param outboundOrder 出库单
     * @return 结果
     */
    public int updateOutboundOrder(OutboundOrder outboundOrder);

    /**
     * 修改出库单父级状态
     *
     * @param m 出库单
     * @return 结果
     */
    public int updateOutboundOrderF(Map<String,Object> m);


    /**
     * 删除出库单
     *
     * @param id 出库单主键
     * @return 结果
     */
    public int deleteOutboundOrderById(Long id);

    /**
     * 批量删除出库单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOutboundOrderByIds(Long[] ids);

    /**
     * 获取最大编号
     * @param order
     * @return
     */
     Integer getMaxNo(OutboundOrder order);

        /**
         * 根据出库单编号查询
         * @param
         * @return
         */
        public List<OutboundOrder> getByOutboundNo(String outboundNo[]);
}
